# coding=utf-8
'''
ec = ["bb", "nn", "aa", "ll"]
ce = ["ap", "pe", "ea", "oo"]
ec1 = ec[1:3:2]# 切片[start:end:ste]
ec2 = ec + ce# 序列相加
if "nn" in ec:  # 检查是否是序列成员
    print("yep")
else:
    print("nope")
len(ec)  # 长度
max(ec)  #大小
min(ec)
print(ec2)
date=range(2,8)#
q=list(date)#创建数值列表
print(q)
#遍历列表
for ll in ec:
    print("ec has :",ll)
#枚举
for qq,mm in enumerate(ec):
    print("num:",qq,"name:",mm)#索引编号+名称
#添加、删除
ec.append("watasi")#添加
ec.extend()
ec.insert(2,"niti")#效率低，后面的内存都要改变
ec.remove("bb")#移除
print(ec)
ec.count()#元素的个数;括号中可以加元素名
ec.index("nn")#编号
ec.sort()#默认升序（reverse=Ture）
sorted()

# f=0
# while f==0:
#     a = str(input())
#     if a=='quit':f=1
#     print("we will add it to pizza:",a)
a=str(input())
print(str(a))
CC=[int(c*0.5) for c in ec]

'''

fruit=["app","pear","peach","berry","lutt"]
print("all:",fruit)
fruit.append("gtt")
print("app:",fruit)
fruit.remove("peach")
print("del:",fruit)
fruit[3]="banana"
print("chage:",fruit)
for ff,tt in enumerate(fruit):
    print(ff,tt)


